package com.dream.service.recommender.domain.splitter;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhiji on 2016/3/15.
 * 实验配置
 */
public class ExpConfig {

    private long exp_id; // 实验ID

    private  String exp_name; // 实验名称

    private int traffic; // 流量

    private Map<String,String> ext_values; // 扩展属性

    private long create_time; // 创建时间

    private long update_time; // 更新时间

    public long getExp_id() {
        return exp_id;
    }

    public void setExp_id(long exp_id) {
        this.exp_id = exp_id;
    }

    public String getExp_name() {
        return exp_name;
    }

    public void setExp_name(String exp_name) {
        this.exp_name = exp_name;
    }

    public int getTraffic() {
        return traffic;
    }

    public void setTraffic(int traffic) {
        this.traffic = traffic;
    }

    public Map<String, String> getExt_values() {
        return ext_values;
    }

    public void setExt_values(Map<String, String> ext_values) {
        this.ext_values = ext_values;
    }

    public long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(long create_time) {
        this.create_time = create_time;
    }

    public long getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(long update_time) {
        this.update_time = update_time;
    }

    public void addParam(String key,String value){
        if(ext_values == null){
            ext_values = new HashMap<String, String>();
        }
        if(key==null || value==null){
            return ;
        }
        ext_values.put(key,value);
    }
}
